package com.weiyuwqj.api.model.convert;

/**
 * Created by zhangyong on 2016/3/25.
 */
public class AccountRechargeResourceConvert extends DefaultConvert {
    @Override
    public Object convert(Object val) {
        if(val==null) return "";
        if(!(val instanceof String)){
            return "";
        }
        String type=val.toString();
        if(type.equals("llauthpay")){
            return "连连认证支付";
        }else if(type.equals("llpay")){
            return "连连网银支付";
        }else if(type.equals("baofu")){
            return "宝付";
        }else if(type.equals("lianlian_pay")){
            return "连连网银支付";
        }else if(type.equals("lianlian_card_prepose_pay")){
            return "连连卡前置支付";
        }else if(type.equals("newBaofoo_pay")){
            return "宝付";
        }else if(type.equals("lianlian_e_bank_pay")){
            return "连连网银支付";
        }else if(type.equals("back_recharge")){
            return "线下充值";
        }else if(type.equals("platform")){
            return "平台充值";
        }else {
            return "其他";
        }
    }
}
